public class ClientClass {
    public static void main(String[] args) {
        FruitFactoryTemplate factory = new ConcreteFruitFactory();

        Fruit apple = factory.createFruit("A");
        apple.eat();  // 输出：eat Apple

        Fruit banana = factory.createFruit("B");
        banana.eat(); // 输出：eat Banana
    }
}